import API from "@/utils/request";

// 限时折扣
export const LIMITCODE = data => {
  // 限时列表
  return API("sp/v1.Assemble/limitList", data);
};
export const LIMITADD = data => {
  // 新建活动
  return API("sp/v1.Assemble/setLimitDiscount", data);
};
export const ADDSHOP = data => {
  // 新建活动
  return API("sp/v1.Assemble/addLimitConfGoods", data);
};
export const SHOPEDIT = data => {
  // bianji
  return API("sp/v1.Assemble/editLimitConfGoods", data);
};
export const SHOPTABLE = data => {
  // 新建活动
  return API("sp/v1.Assemble/getGoodsSku", data);
};
export const DELETECODE = data => {
  // shanchu
  return API("sp/v1.Assemble/startImmediatelyLimit", data);
};

export const DELGOODS = data => {
  return API("sp/v1.Assemble/delGoods", data);
};
export const UP_TOKEN = data => {
  return API("newaddress/Purchase/up_token", data);
};
export const GETGOODSSKU = data => {
  return API("sp/v1.Assemble/getGoodsSku", data);
};
